package structural.decorator.v1;

/**
 * @Author: 蔡翔
 * @Date: 2019/12/9 10:38
 * @Version 1.0
 */
public class BatterCakeWithEgg extends BatterCake {
    @Override
    public String getDesc() {
        return super.getDesc() + "加一个蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
